package lesson.exam;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamDao {


    public Integer addExam(@Param("exam")Exam exam);


    public boolean checkExist(@Param("exceptId") Integer exceptId, @Param("name") String name);

    public List<Exam> list(@Param("keywords") String keywords);

    public void delExam(Integer id);

    Exam getById(Integer id);

    void updateExam(@Param("exam")Exam exam);
}
